Any other way to import data files(like .csv) in python sqlite3 module ?[not insert one by one]

Posted by cyaos on Stack Overflow See other posts from Stack Overflow or by cyaos
Published on 2010-05-18T04:23:55Z Indexed on 2010/05/18 4:30 UTC
Read the original article Hit count: 117

Filed under:
|
|
|

in sqlite3's client CLI, there is " .import file TABLE_name " to do it.

But, I do not want to install sqlite3 to my server at present.

in python sqlite3 module, we can creat and edit a DB.

But, I have not found a way to import data-file to a TABLE,

except inserting rows one by one.

any other way? Thanks.

© Stack Overflow or respective owner

Related posts about sqlite3

Related posts about python